package workerpool2

type Option func(pool *Pool)

func WithBlock(block bool) Option {
	return func(p *Pool) {
		p.block = block
	}
}

// 返回闭包函数的函数
func WithPreAllWorkers(preAlloc bool) Option {
	return func(pool *Pool) {
		pool.preAlloc = preAlloc

	}
}
